home *** CD-ROM | disk | FTP | other *** search
- package com.sun.java.swing.plaf.metal;
-
- import com.sun.java.swing.plaf.ColorUIResource;
- import com.sun.java.swing.plaf.FontUIResource;
-
- public class DefaultMetalTheme extends MetalTheme {
- private final ColorUIResource primary1 = new ColorUIResource(102, 102, 153);
- private final ColorUIResource primary2 = new ColorUIResource(153, 153, 204);
- private final ColorUIResource primary3 = new ColorUIResource(204, 204, 255);
- private final ColorUIResource secondary1 = new ColorUIResource(102, 102, 102);
- private final ColorUIResource secondary2 = new ColorUIResource(153, 153, 153);
- private final ColorUIResource secondary3 = new ColorUIResource(204, 204, 204);
- private final FontUIResource controlFont = new FontUIResource("Dialog", 1, 12);
- private final FontUIResource systemFont = new FontUIResource("Dialog", 0, 12);
- private final FontUIResource windowTitleFont = new FontUIResource("SansSerif", 1, 12);
- private final FontUIResource userFont = new FontUIResource("SansSerif", 0, 12);
- private final FontUIResource smallFont = new FontUIResource("Dialog", 0, 10);
-
- public FontUIResource getControlTextFont() {
- return this.controlFont;
- }
-
- public FontUIResource getMenuTextFont() {
- return this.controlFont;
- }
-
- public String getName() {
- return "Steel";
- }
-
- protected ColorUIResource getPrimary1() {
- return this.primary1;
- }
-
- protected ColorUIResource getPrimary2() {
- return this.primary2;
- }
-
- protected ColorUIResource getPrimary3() {
- return this.primary3;
- }
-
- protected ColorUIResource getSecondary1() {
- return this.secondary1;
- }
-
- protected ColorUIResource getSecondary2() {
- return this.secondary2;
- }
-
- protected ColorUIResource getSecondary3() {
- return this.secondary3;
- }
-
- public FontUIResource getSubTextFont() {
- return this.smallFont;
- }
-
- public FontUIResource getSystemTextFont() {
- return this.systemFont;
- }
-
- public FontUIResource getUserTextFont() {
- return this.userFont;
- }
-
- public FontUIResource getWindowTitleFont() {
- return this.controlFont;
- }
- }
-